package cevent.source.cloudcenter.business.controller.client;/**
 * Created by Cevent on 2021/7/16.
 */

import cevent.source.cloudcenter.server.dto.ResponseDataDto;
import cevent.source.cloudcenter.server.service.SiteSetService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author cevent
 * @description 客户端站点信息接口
 * @date 2021/7/16 11:21
 * 避免同controller名，spring报错，需要在@RestController("别名")
 */
@RestController("ClientSiteSetController")
@RequestMapping("/client/siteset")
public class ClientSiteSetController {
    private static final Logger LOG= LoggerFactory.getLogger(ClientModuleController.class);
    public static final String BUSINESS_NAME="客户端Module模块";

    @Resource
    private SiteSetService siteSetService;

    //1.获取siteSet设置信息，包含logo
    @GetMapping("/list")
    public ResponseDataDto getSiteSet(){
        ResponseDataDto responseData=new ResponseDataDto();
        responseData.setResponseData(siteSetService.siteSetDtoOpenList());
        return responseData;
    }
}
